﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Text;

namespace Common.Logger.RabbitMQ
{
    /// <summary>
    /// RabbitMQ设置
    /// </summary>
    public class RabbitMQSettings
    {
        /// <summary>
        /// 主机
        /// </summary>
        [Required(ErrorMessage = "rabbitmq host is required")]
        public string Host { get; set; }
        /// <summary>
        /// 交换中心名称
        /// </summary>
        public string Exchange { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string RoutingKey { get; set; }
        /// <summary>
        /// 队列名称
        /// </summary>
        [Required(ErrorMessage = "rabbitmq queue name is required")]
        public string Queue { get; set; }
        /// <summary>
        /// vhost名称
        /// </summary>
        public string Vhost { get; set; }
        /// <summary>
        /// 用户名
        /// </summary>
        public string UserName { get; set; }
        /// <summary>
        /// 密码
        /// </summary>
        public string Password { get; set; }
    }
}
